package day2;

import org.junit.Test;

/**
 * @author joker
 * @date 2022/4/22 0022 - 22:21
 */
public class Dog extends Animal implements Inter04{
    int a=2;
    @Override
    public void m5() {
        System.out.println("dog**m5");
    }

    @Override
    public void m2() {
        System.out.println("dog的m2方法");
    }

    @Override
    public void m6() {
        System.out.println("dog**m6");

    }

    @Override
    protected void m7() {
        System.out.println("dog**m7");

    }

    static void m8() {
        System.out.println("dog**m8");

    }
    @Test
    public void test(){
        Dog dog = new Dog();
        System.out.println(dog.e);
        dog.e=77;
        try {
            Thread.sleep(100000);
        } catch (InterruptedException e1) {
            e1.printStackTrace();
        }
    }
    public void m9(){

    }

    public static void main(String[] args) {
//        Dog dog = new Dog();
//        System.out.println(dog.a);
//        System.out.println(dog.c);
//        System.out.println(dog.d);
//        System.out.println(dog.e);
//        dog.e=77;
//        Dog dog1 = new Dog();
//        System.out.println(dog1.e);
//        Animal dog2=new Dog();
//        System.out.println(dog.a);
//        System.out.println(dog.c);
//        System.out.println(dog.d);
//        System.out.println(dog.e);
        Dog dog = new Dog();
//        dog.m1();
//        dog.m2();
////        dog.m4();
////        Animal.m8();
////        Dog.m8();
////        dog.m8();
//        dog.m5();
//        dog.m6();
//        dog.m7();
        System.out.println(dog.a);
        dog.m9();
        Animal dog2=new Dog();
//        dog2.m5();
//        dog2.m6();
//        dog2.m7();
        System.out.println(dog2.a);

    }
    static Inter04 m10(){
        return new Dog();
    }
    @Test
    public void test2(){
        Inter04 dog=m10();
        System.out.println(dog instanceof Dog);
    }
}
